:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0rem;
  text-align: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
@tailwind base;
@tailwind components;
@tailwind utilities;

.modal {
  position: fixed; left:0; top:0; right:0; bottom:0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff; padding: 24px 32px; border-radius: 8px; min-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.admin-info {
  display: flex;
  align-items: center;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.admin-page-wrapper {
  min-height: 100vh;
  width: 100vw;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.admin-post-list {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 32px 32px 24px 32px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .admin-post-list {
    max-width: 98vw;
    padding: 16px 8px;
  }
}
@media (max-width: 768px) {
  .admin-post-list {
    max-width: 100vw;
    padding: 8px 2px;
  }
  .admin-page-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

.page-bg {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #b2f0e6 0%, #fbeee6 100%);
  /* 可根据品牌色调整渐变色 */
}

.admin-page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 0;
}

.admin-post-list, .admin-stats {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 40px 40px 32px 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.stats-title, .post-title {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff8a65, #f6d365);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.el-button--primary {
  background: linear-gradient(90deg, #ff8a65, #f6d365);
  border: none;
  border-radius: 24px;
  font-size: 18px;
  padding: 10px 32px;
  box-shadow: 0 2px 8px rgba(255,138,101,0.15);
  transition: box-shadow 0.2s;
}
.el-button--primary:hover {
  box-shadow: 0 4px 16px rgba(255,138,101,0.25);
}

.filter-bar {
  background: #f7f8fa;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px #f0f1f2;
}

.el-table {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px #f0f1f2;
  margin-bottom: 24px;
}

.el-pagination {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .admin-post-list, .admin-stats {
    max-width: 98vw;
    padding: 16px 4px;
  }
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
